<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <meta charset='utf-8'>
    <title>CRM每日任务</title>
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/views/daywork.js"></script>
</head>
<body>
    <table id="daywork_tab" class="easyui-datagrid">

    </table>
    <div id="daywork_tab_tool">
        <shiro:hasPermission name="dept:tsave">
            <a class="easyui-linkbutton" plain="true" iconCls="icon-add" data-cmd="adddaywork">指派任务</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-edit" data-cmd="editdaywork">修改任务</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-remove" data-cmd="deletedaywork">删除任务</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="worksuccess">标记完成</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="workfail">标记失败</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-reload" data-cmd="reloadList">刷新</a>
        </shiro:hasPermission>
        <shiro:lacksPermission name="dept:tsave">
        </shiro:lacksPermission>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-download" data-cmd="updatework">填写任务处理描述</a>
        <span>处理时间:</span>
        <input  id="workTime" name="workTime"  class= "easyui-datebox" required ="required"/>
        <shiro:hasPermission name="dept:tsave">
            <span>处理人:</span>
            <input class="easyui-textbox" id="keyword" name="employeeId">
        </shiro:hasPermission>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-search" data-cmd="queryForList">查询</a>
    </div>
    <%----%>
    <div id="daywork_dialog" style="padding: 10px">
        <form id="daywork_edit" method="post">
            <table>
                <input id="daywork_id" type="hidden" name="id">
                <input id="state_s" type="hidden" name="state">
                <tr align="left">
                    <td>日&emsp;期</td>
                    <td><input name="workTime" class="easyui-datebox"></td>
                </tr>
                <tr align="right">
                    <td>处理人员</td>
                    <td><input name="employee.id" class="easyui-combobox" data-options="
                            url:'/employee/selectEmployeeByDeptId',
                            valueField:'id',
                            textField:'realName',
                            panelHeight:'auto',
                            "></td>
                </tr>
                <tr align="right">
                    <td>任务描述</td>
                    <td><input data-options="multiline:true" class="easyui-textbox" name="workDescription" style="height: 50px"/></td>
                </tr>
            </table>
        </form>
    </div>
    <div id="daywork_edit_tool">
        <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="savework">确定</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
    <div id="edaywork_dialog" style="padding: 10px">
        <form id="edaywork_edit" method="post">
            <table>
                <input id="edaywork_id" type="hidden" name="id">
                <input id="state" type="hidden" name="state">
                    <td>任务处理描述</td>
                    <td><input data-options="multiline:true" class="easyui-textbox" name="descriptionHandle" style="height: 50px"/></td>
                </tr>
            </table>
        </form>
    </div>
    <div id="edaywork_edit_tool">
        <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="esavework">确定</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
</body>
</html>
